package com.sap.tpcd.policybuilder.policymodel ;


/**
 * @author I068988
 * @version 1.0
 * @created 30-sept.-2011 14:12:32
 */
public class IpAdrr {

	private String hostAdress;
	private String networkAdress;

	public IpAdrr(){
	}
	

	public String getAdress(){
		return "";
	}

	public IpAdrr(String hostAdress, String networkAdress) {
		super();
		this.hostAdress = hostAdress;
		this.networkAdress = networkAdress;
	}

	/**
	 * @return the hostAdress
	 */
	public String getHostAdress() {
		return hostAdress;
	}

	/**
	 * @param hostAdress the hostAdress to set
	 */
	public void setHostAdress(String hostAdress) {
		this.hostAdress = hostAdress;
	}

	/**
	 * @return the networkAdress
	 */
	public String getNetworkAdress() {
		return networkAdress;
	}

	/**
	 * @param networkAdress the networkAdress to set
	 */
	public void setNetworkAdress(String networkAdress) {
		this.networkAdress = networkAdress;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((hostAdress == null) ? 0 : hostAdress.hashCode());
		result = prime * result
				+ ((networkAdress == null) ? 0 : networkAdress.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof IpAdrr)) {
			return false;
		}
		IpAdrr other = (IpAdrr) obj;
		if (hostAdress == null) {
			if (other.hostAdress != null) {
				return false;
			}
		} else if (!hostAdress.equals(other.hostAdress)) {
			return false;
		}
		if (networkAdress == null) {
			if (other.networkAdress != null) {
				return false;
			}
		} else if (!networkAdress.equals(other.networkAdress)) {
			return false;
		}
		return true;
	}

	
}